package com.morse.computer.mvi

class BaseData<T> {
    var code = -1
    val msg: String? = null
    var data: T? = null
    var state:ReqState = ReqState.Error

    override fun toString(): String {
        return "BaseData(code=$code, msg=$msg, data=$data, state=$state)"
    }
}

enum class ReqState {
    Success, Error
}